package cn.wolfcode._IOday01_.classDemo;

import java.io.File;
import java.util.Arrays;

public class IoClassDemo {
    public static void main(String[] args) throws Exception{
        File f = new File("D:\\资料\\第四阶段-基础高级阶段\\04-IO\\day01\\笔记");
        //判断是否是目录
        System.out.println(f.isDirectory());
        //判断是否是文件
        System.out.println(f.isFile());
        //获取路径
        System.out.println(f.getPath());
        //创建目录
        System.out.println(f.mkdirs());
        if (f.isDirectory()){
            File[] files = f.listFiles();
            System.out.println(Arrays.toString(files));
        }
    }
}
